package o;

import java.util.concurrent.Executor;

public class cnb extends cmu implements cnh {
    private StringBuffer ˊ = new StringBuffer();
    private int ˎ = 0;
    private Executor ˏ;
    private int ॱ = 0;

    public cnb(cmq o_cmq) {
        super(o_cmq, "DNSTask");
        this.ˏ = o_cmq.ॱ();
        cng.ˋ(o_cmq.ˎ().getPackageName());
    }

    public void run() {
        this.ˊ.append("Domain List Test\n");
        this.ˏ.execute(new cno(this));
        this.ˏ.execute(new cnl(this));
        this.ˏ.execute(new cnj(this));
        this.ˏ.execute(new cni(this));
        this.ˏ.execute(new cnm(this));
        this.ˏ.execute(new cnk(this));
        this.ˏ.execute(new cnn(this));
        this.ˏ.execute(new cnq(this));
        this.ˏ.execute(new cnd(this));
        this.ˏ.execute(new cnf(this));
    }

    public void ˎ(cne o_cne, boolean z) {
        ˏ(o_cne, z);
    }

    private synchronized void ˏ(cne o_cne, boolean z) {
        int i = 2;
        synchronized (this) {
            if (o_cne.ˊ().contains("AHEADCONN")) {
                StringBuilder stringBuilder = new StringBuilder();
                if (!z) {
                    i = 1;
                }
                stringBuilder.append("CDN File Connect Test\n");
                stringBuilder.append(o_cne.toString());
                this.ˋ.ˊ(-104, i, stringBuilder.toString());
            } else {
                if (z) {
                    this.ˎ++;
                } else {
                    this.ॱ++;
                }
                ˏ(o_cne.toString());
                if (this.ˎ + this.ॱ == 9) {
                    if (this.ॱ != 0) {
                        i = 1;
                    }
                    this.ˋ.ˊ(-102, i, this.ˊ.toString());
                }
            }
        }
    }

    private void ˏ(String str) {
        this.ˊ.append(str);
    }
}
